import { ref } from 'vue';

export function useLabelEditor() {
  const labelEditorProps = ref({ visible: false, name: '' });
  
  function showLabelEditor() {
    Object.assign(labelEditorProps.value, { visible: true });
  }

  return {
    labelEditorProps,
    showLabelEditor,
  };
}
